#! /bin/sh

. /lib/lsb/init-functions

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
APPCTL=/usr/local/bin/simaqian
APPNAME="Simaqian"

test -x $APPCTL || exit 0

case "$1" in
start)
	log_begin_msg "Starting $APPNAME Server ..."
	$APPCTL start
	log_end_msg $?
;;
stop)
	log_begin_msg "Stopping $APPNAME Server ..."
	$APPCTL stop
	log_end_msg $?
;;
force-reload|restart)
	$0 stop
	$0 start
;;
*)
	log_begin_msg "Usage: $0 {start|stop|restart}"
	exit 1
;;
esac

exit 0
